// ****************************************************************************** 
// Copyright     :  Copyright (C) 2018, Hisilicon Technologies Co. Ltd.
// File name     :  l2buff_reg_offset_field.h
// Project line  :  Platform And Key Technologies Development
// Department    :  CAD Development Department
// Author        :  xxx
// Version       :  1.0
// Date          :  2013/3/10
// Description   :  The description of xxx project
// Others        :  Generated automatically by nManager V4.2 
// History       :  xxx 2018/03/16 17:39:05 Create file
// ******************************************************************************

#ifndef __L2BUFF_REG_OFFSET_FIELD_H__
#define __L2BUFF_REG_OFFSET_FIELD_H__

#define L2BUFF_REG_TIMEOUT_EN_LEN            1
#define L2BUFF_REG_TIMEOUT_EN_OFFSET         19
#define L2BUFF_REG_ARB_OPTIMIZE_LEN          1
#define L2BUFF_REG_ARB_OPTIMIZE_OFFSET       18
#define L2BUFF_REG_RDRPT_OPTIMIZE_LEN        1
#define L2BUFF_REG_RDRPT_OPTIMIZE_OFFSET     17
#define L2BUFF_REG_BUFF_OBLIGATE_2_EN_LEN    1
#define L2BUFF_REG_BUFF_OBLIGATE_2_EN_OFFSET 16
#define L2BUFF_REG_BUFF_OBLIGATE_1_EN_LEN    1
#define L2BUFF_REG_BUFF_OBLIGATE_1_EN_OFFSET 15
#define L2BUFF_REG_PGNT_CONFLICT_EN_LEN      1
#define L2BUFF_REG_PGNT_CONFLICT_EN_OFFSET   14
#define L2BUFF_REG_ARB_ONECYCLE_EN_LEN       1
#define L2BUFF_REG_ARB_ONECYCLE_EN_OFFSET    13
#define L2BUFF_REORDER_EN_ALL_LEN            1
#define L2BUFF_REORDER_EN_ALL_OFFSET         12
#define L2BUFF_REORDER_EN_2_LEN              1
#define L2BUFF_REORDER_EN_2_OFFSET           11
#define L2BUFF_REORDER_EN_1_LEN              1
#define L2BUFF_REORDER_EN_1_OFFSET           10
#define L2BUFF_REORDER_EN_0_LEN              1
#define L2BUFF_REORDER_EN_0_OFFSET           9
#define L2BUFF_FIFO_SHUT_EN_LEN              1
#define L2BUFF_FIFO_SHUT_EN_OFFSET           8
#define L2BUFF_DMT_EN_LEN                    1
#define L2BUFF_DMT_EN_OFFSET                 7
#define L2BUFF_POS_EN_LEN                    1
#define L2BUFF_POS_EN_OFFSET                 6
#define L2BUFF_INT_SHUT_EN_LEN               1
#define L2BUFF_INT_SHUT_EN_OFFSET            5
#define L2BUFF_LOWER_POWER_EN_LEN            1
#define L2BUFF_LOWER_POWER_EN_OFFSET         3
#define L2BUFF_ERR_FIRST_EN_LEN              1
#define L2BUFF_ERR_FIRST_EN_OFFSET           2
#define L2BUFF_LINK_DOWN_LEN                 1
#define L2BUFF_LINK_DOWN_OFFSET              0



#define L2BUFF_L2BUFF_INVLD_DONE_LEN     1
#define L2BUFF_L2BUFF_INVLD_DONE_OFFSET  1
#define L2BUFF_L2BUFF_INVLD_START_LEN    1
#define L2BUFF_L2BUFF_INVLD_START_OFFSET 0

#define L2BUFF_SEC_ADDR_EN_LEN    1
#define L2BUFF_SEC_ADDR_EN_OFFSET 0

#define L2BUFF_SEC_ADDR_LEN    18
#define L2BUFF_SEC_ADDR_OFFSET 0

#define L2BUFF_SEC_SIZE_LEN    18
#define L2BUFF_SEC_SIZE_OFFSET 0

#define L2BUFF_L2BUFF_INTLV_LEN    1
#define L2BUFF_L2BUFF_INTLV_OFFSET 0

#define L2BUFF_RESPERR_SHUTDOWN_EN_LEN       1
#define L2BUFF_RESPERR_SHUTDOWN_EN_OFFSET    4
#define L2BUFF_ECC_FLUSH_SHUTDOWN_EN_LEN     1
#define L2BUFF_ECC_FLUSH_SHUTDOWN_EN_OFFSET  3
#define L2BUFF_ECC_DETECT_SHUTDOWN_EN_LEN    1
#define L2BUFF_ECC_DETECT_SHUTDOWN_EN_OFFSET 2

#define L2BUFF_TIMEOUT_CNT_LEN    32
#define L2BUFF_TIMEOUT_CNT_OFFSET 0

#define L2BUFF_PERF_EVENT_EN_LEN    1
#define L2BUFF_PERF_EVENT_EN_OFFSET 12
#define L2BUFF_INSIDE_BUFID_LEN     4
#define L2BUFF_INSIDE_BUFID_OFFSET  8
#define L2BUFF_REQ_BUFID_LEN        5
#define L2BUFF_REQ_BUFID_OFFSET     0

#define L2BUFF_REORDER_SRCID_3_LEN    9
#define L2BUFF_REORDER_SRCID_3_OFFSET 23
#define L2BUFF_REORDER_SRCID_1_LEN    9
#define L2BUFF_REORDER_SRCID_1_OFFSET 12
#define L2BUFF_REORDER_SRCID_0_LEN    9
#define L2BUFF_REORDER_SRCID_0_OFFSET 0

#define L2BUFF_ECCINJECT_BIT2_SEL_LEN    8
#define L2BUFF_ECCINJECT_BIT2_SEL_OFFSET 24
#define L2BUFF_ECCINJECT_BIT2_EN_LEN     1
#define L2BUFF_ECCINJECT_BIT2_EN_OFFSET  16
#define L2BUFF_ECCINJECT_BIT1_SEL_LEN    8
#define L2BUFF_ECCINJECT_BIT1_SEL_OFFSET 8
#define L2BUFF_ECCINJECT_BIT1_EN_LEN     1
#define L2BUFF_ECCINJECT_BIT1_EN_OFFSET  0

#define L2BUFF_ERR_NS_M_LEN           1
#define L2BUFF_ERR_NS_M_OFFSET        9
#define L2BUFF_ERR_WRFULL_SIZE_LEN    1
#define L2BUFF_ERR_WRFULL_SIZE_OFFSET 8
#define L2BUFF_ERR_WRPTL_SIZE_LEN     1
#define L2BUFF_ERR_WRPTL_SIZE_OFFSET  7
#define L2BUFF_ERR_WRITE_M_LEN        1
#define L2BUFF_ERR_WRITE_M_OFFSET     6
#define L2BUFF_ERR_READ_M_LEN         1
#define L2BUFF_ERR_READ_M_OFFSET      5
#define L2BUFF_ERR_REQ_M_LEN          1
#define L2BUFF_ERR_REQ_M_OFFSET       4
#define L2BUFF_EVENT_CNT3_M_LEN       1
#define L2BUFF_EVENT_CNT3_M_OFFSET    3
#define L2BUFF_EVENT_CNT2_M_LEN       1
#define L2BUFF_EVENT_CNT2_M_OFFSET    2
#define L2BUFF_EVENT_CNT1_M_LEN       1
#define L2BUFF_EVENT_CNT1_M_OFFSET    1
#define L2BUFF_EVENT_CNT0_M_LEN       1
#define L2BUFF_EVENT_CNT0_M_OFFSET    0

#define L2BUFF_ERR_NS_R_LEN            1
#define L2BUFF_ERR_NS_R_OFFSET         9
#define L2BUFF_ERR_WRPTL_FULL_R_LEN    1
#define L2BUFF_ERR_WRPTL_FULL_R_OFFSET 8
#define L2BUFF_ERR_WRPTL_PTL_R_LEN     1
#define L2BUFF_ERR_WRPTL_PTL_R_OFFSET  7
#define L2BUFF_ERR_WRITE_R_LEN         1
#define L2BUFF_ERR_WRITE_R_OFFSET      6
#define L2BUFF_ERR_READ_R_LEN          1
#define L2BUFF_ERR_READ_R_OFFSET       5
#define L2BUFF_ERR_REQ_R_LEN           1
#define L2BUFF_ERR_REQ_R_OFFSET        4
#define L2BUFF_EVENT_CNT3_R_LEN        1
#define L2BUFF_EVENT_CNT3_R_OFFSET     3
#define L2BUFF_EVENT_CNT2_R_LEN        1
#define L2BUFF_EVENT_CNT2_R_OFFSET     2
#define L2BUFF_EVENT_CNT1_R_LEN        1
#define L2BUFF_EVENT_CNT1_R_OFFSET     1
#define L2BUFF_EVENT_CNT0_R_LEN        1
#define L2BUFF_EVENT_CNT0_R_OFFSET     0

#define L2BUFF_ERR_NS_I_LEN             1
#define L2BUFF_ERR_NS_I_OFFSET          9
#define L2BUFF_ERR_WRFULL_SIZE_I_LEN    1
#define L2BUFF_ERR_WRFULL_SIZE_I_OFFSET 8
#define L2BUFF_ERR_WRPTL_SIZE_I_LEN     1
#define L2BUFF_ERR_WRPTL_SIZE_I_OFFSET  7
#define L2BUFF_ERR_WRITE_I_LEN          1
#define L2BUFF_ERR_WRITE_I_OFFSET       6
#define L2BUFF_ERR_READ_I_LEN           1
#define L2BUFF_ERR_READ_I_OFFSET        5
#define L2BUFF_ERR_REQ_I_LEN            1
#define L2BUFF_ERR_REQ_I_OFFSET         4
#define L2BUFF_EVENT_CNT3_I_LEN         1
#define L2BUFF_EVENT_CNT3_I_OFFSET      3
#define L2BUFF_EVENT_CNT2_I_LEN         1
#define L2BUFF_EVENT_CNT2_I_OFFSET      2
#define L2BUFF_EVENT_CNT1_I_LEN         1
#define L2BUFF_EVENT_CNT1_I_OFFSET      1
#define L2BUFF_EVENT_CNT0_I_LEN         1
#define L2BUFF_EVENT_CNT0_I_OFFSET      0

#define L2BUFF_ERR_NS_C_LEN             1
#define L2BUFF_ERR_NS_C_OFFSET          9
#define L2BUFF_ERR_WRFULL_SIZE_C_LEN    1
#define L2BUFF_ERR_WRFULL_SIZE_C_OFFSET 8
#define L2BUFF_ERR_WRPTL_SIZE_C_LEN     1
#define L2BUFF_ERR_WRPTL_SIZE_C_OFFSET  7
#define L2BUFF_ERR_WRITE_C_LEN          1
#define L2BUFF_ERR_WRITE_C_OFFSET       6
#define L2BUFF_ERR_READ_C_LEN           1
#define L2BUFF_ERR_READ_C_OFFSET        5
#define L2BUFF_ERR_REQ_C_LEN            1
#define L2BUFF_ERR_REQ_C_OFFSET         4
#define L2BUFF_EVENT_CNT3_C_LEN         1
#define L2BUFF_EVENT_CNT3_C_OFFSET      3
#define L2BUFF_EVENT_CNT2_C_LEN         1
#define L2BUFF_EVENT_CNT2_C_OFFSET      2
#define L2BUFF_EVENT_CNT1_C_LEN         1
#define L2BUFF_EVENT_CNT1_C_OFFSET      1
#define L2BUFF_EVENT_CNT0_C_LEN         1
#define L2BUFF_EVENT_CNT0_C_OFFSET      0

#define L2BUFF_L2BUFF_STATUS_LEN    1
#define L2BUFF_L2BUFF_STATUS_OFFSET 0

#define L2BUFF_RETRY_LEN        1
#define L2BUFF_RETRY_OFFSET     9
#define L2BUFF_RAM_WR_LEN       1
#define L2BUFF_RAM_WR_OFFSET    8
#define L2BUFF_RAM_RD_11_LEN    1
#define L2BUFF_RAM_RD_11_OFFSET 7
#define L2BUFF_RAM_RD_10_LEN    1
#define L2BUFF_RAM_RD_10_OFFSET 6
#define L2BUFF_RAM_RD_01_LEN    1
#define L2BUFF_RAM_RD_01_OFFSET 5
#define L2BUFF_RAM_RD_00_LEN    1
#define L2BUFF_RAM_RD_00_OFFSET 4
#define L2BUFF_TXCOMP_LEN       1
#define L2BUFF_TXCOMP_OFFSET    3
#define L2BUFF_TXRDRPT_LEN      1
#define L2BUFF_TXRDRPT_OFFSET   2
#define L2BUFF_TXDBID_LEN       1
#define L2BUFF_TXDBID_OFFSET    1
#define L2BUFF_VALID_LEN        1
#define L2BUFF_VALID_OFFSET     0

#define L2BUFF_SIZE_BIT_LEN       4
#define L2BUFF_SIZE_BIT_OFFSET    25
#define L2BUFF_OPCODE_LEN         6
#define L2BUFF_OPCODE_OFFSET      19
#define L2BUFF_ENDIAN_MODE_LEN    1
#define L2BUFF_ENDIAN_MODE_OFFSET 18
#define L2BUFF_RETNID_LEN         9
#define L2BUFF_RETNID_OFFSET      9
#define L2BUFF_SRCID_LEN          9
#define L2BUFF_SRCID_OFFSET       0

#define L2BUFF_ADDR_LEN    16
#define L2BUFF_ADDR_OFFSET 0

#define L2BUFF_INSIDE_SIZE_LEN      4
#define L2BUFF_INSIDE_SIZE_OFFSET   21
#define L2BUFF_INSIDE_OPCODE_LEN    6
#define L2BUFF_INSIDE_OPCODE_OFFSET 15
#define L2BUFF_INSIDE_ENDIAN_LEN    1
#define L2BUFF_INSIDE_ENDIAN_OFFSET 14
#define L2BUFF_INSIDE_SRCID_LEN     9
#define L2BUFF_INSIDE_SRCID_OFFSET  5
#define L2BUFF_INSIDE_RXRSP_LEN     1
#define L2BUFF_INSIDE_RXRSP_OFFSET  4
#define L2BUFF_INSIDE_TXREQ_LEN     1
#define L2BUFF_INSIDE_TXREQ_OFFSET  3
#define L2BUFF_INSIDE_TXCOMP_LEN    1
#define L2BUFF_INSIDE_TXCOMP_OFFSET 2
#define L2BUFF_INSIDE_TXDBID_LEN    1
#define L2BUFF_INSIDE_TXDBID_OFFSET 1
#define L2BUFF_INSIDE_VALID_LEN     1
#define L2BUFF_INSIDE_VALID_OFFSET  0

#define L2BUFF_INSIDE_ADDR_LEN    18
#define L2BUFF_INSIDE_ADDR_OFFSET 0

#define L2BUFF_SRCID_LEN       9
#define L2BUFF_SRCID_OFFSET    23
#define L2BUFF_RETNID_LEN      9
#define L2BUFF_RETNID_OFFSET   14
#define L2BUFF_ERR_TYPE_LEN    6
#define L2BUFF_ERR_TYPE_OFFSET 1
#define L2BUFF_ERR_VLD_LEN     1
#define L2BUFF_ERR_VLD_OFFSET  0

#define L2BUFF_ADDR_LEN      18
#define L2BUFF_ADDR_OFFSET   14
#define L2BUFF_OPCODE_LEN    6
#define L2BUFF_OPCODE_OFFSET 8
#define L2BUFF_TXNID_LEN     8
#define L2BUFF_TXNID_OFFSET  0

#define L2BUFF_REQRSV_LEN       4
#define L2BUFF_REQRSV_OFFSET    6
#define L2BUFF_CACHEABLE_LEN    1
#define L2BUFF_CACHEABLE_OFFSET 5
#define L2BUFF_NS_LEN           1
#define L2BUFF_NS_OFFSET        4
#define L2BUFF_SIZE_LEN         4
#define L2BUFF_SIZE_OFFSET      0

#define L2BUFF_SC_MEM_CFG_HISI_SP_HC_LEN    8
#define L2BUFF_SC_MEM_CFG_HISI_SP_HC_OFFSET 16
#define L2BUFF_SC_MEM_CFG_HISI_SP_HD_LEN    8
#define L2BUFF_SC_MEM_CFG_HISI_SP_HD_OFFSET 8
#define L2BUFF_SC_MEM_CFG_HISI_TP_LEN       8
#define L2BUFF_SC_MEM_CFG_HISI_TP_OFFSET    0

#define L2BUFF_EVENT_CNT3_EN_LEN    1
#define L2BUFF_EVENT_CNT3_EN_OFFSET 3
#define L2BUFF_EVENT_CNT2_EN_LEN    1
#define L2BUFF_EVENT_CNT2_EN_OFFSET 2
#define L2BUFF_EVENT_CNT1_EN_LEN    1
#define L2BUFF_EVENT_CNT1_EN_OFFSET 1
#define L2BUFF_EVENT_CNT0_EN_LEN    1
#define L2BUFF_EVENT_CNT0_EN_OFFSET 0

#define L2BUFF_L2BUFF_EVENT_CNT3_TYPE_LEN    8
#define L2BUFF_L2BUFF_EVENT_CNT3_TYPE_OFFSET 24
#define L2BUFF_L2BUFF_EVENT_CNT2_TYPE_LEN    8
#define L2BUFF_L2BUFF_EVENT_CNT2_TYPE_OFFSET 16
#define L2BUFF_L2BUFF_EVENT_CNT1_TYPE_LEN    8
#define L2BUFF_L2BUFF_EVENT_CNT1_TYPE_OFFSET 8
#define L2BUFF_L2BUFF_EVENT_CNT0_TYPE_LEN    8
#define L2BUFF_L2BUFF_EVENT_CNT0_TYPE_OFFSET 0

#define L2BUFF_L2BUFF_EVENT_COUNTER0_LEN    32
#define L2BUFF_L2BUFF_EVENT_COUNTER0_OFFSET 0

#define L2BUFF_L2BUFF_EVENT_COUNTER0_H_LEN    16
#define L2BUFF_L2BUFF_EVENT_COUNTER0_H_OFFSET 0

#define L2BUFF_L2BUFF_EVENT_COUNTER1_LEN    32
#define L2BUFF_L2BUFF_EVENT_COUNTER1_OFFSET 0

#define L2BUFF_L2BUFF_EVENT_COUNTER1_H_LEN    16
#define L2BUFF_L2BUFF_EVENT_COUNTER1_H_OFFSET 0

#define L2BUFF_L2BUFF_EVENT_COUNTER2_LEN    32
#define L2BUFF_L2BUFF_EVENT_COUNTER2_OFFSET 0

#define L2BUFF_L2BUFF_EVENT_COUNTER2_H_LEN    16
#define L2BUFF_L2BUFF_EVENT_COUNTER2_H_OFFSET 0

#define L2BUFF_L2BUFF_EVENT_COUNTER3_LEN    32
#define L2BUFF_L2BUFF_EVENT_COUNTER3_OFFSET 0

#define L2BUFF_L2BUFF_EVENT_COUNTER3_H_LEN    16
#define L2BUFF_L2BUFF_EVENT_COUNTER3_H_OFFSET 0

#define L2BUFF_CEO_LEN    2
#define L2BUFF_CEO_OFFSET 18
#define L2BUFF_DUI_LEN    2
#define L2BUFF_DUI_OFFSET 16
#define L2BUFF_RP_LEN     1
#define L2BUFF_RP_OFFSET  15
#define L2BUFF_CEC_LEN    3
#define L2BUFF_CEC_OFFSET 12
#define L2BUFF_CFI_LEN    2
#define L2BUFF_CFI_OFFSET 10
#define L2BUFF_UE_LEN     2
#define L2BUFF_UE_OFFSET  8
#define L2BUFF_FI_LEN     2
#define L2BUFF_FI_OFFSET  6
#define L2BUFF_UI_LEN     2
#define L2BUFF_UI_OFFSET  4
#define L2BUFF_ED_LEN     2
#define L2BUFF_ED_OFFSET  0



#define L2BUFF_DUI_LEN    1
#define L2BUFF_DUI_OFFSET 10
#define L2BUFF_CFI_LEN    1
#define L2BUFF_CFI_OFFSET 8
#define L2BUFF_UE_LEN     1
#define L2BUFF_UE_OFFSET  4
#define L2BUFF_FI_LEN     1
#define L2BUFF_FI_OFFSET  3
#define L2BUFF_UI_LEN     1
#define L2BUFF_UI_OFFSET  2
#define L2BUFF_ED_LEN     1
#define L2BUFF_ED_OFFSET  0



#define L2BUFF_AV_LEN      1
#define L2BUFF_AV_OFFSET   31
#define L2BUFF_V_LEN       1
#define L2BUFF_V_OFFSET    30
#define L2BUFF_UE_LEN      1
#define L2BUFF_UE_OFFSET   29
#define L2BUFF_ER_LEN      1
#define L2BUFF_ER_OFFSET   28
#define L2BUFF_OF_LEN      1
#define L2BUFF_OF_OFFSET   27
#define L2BUFF_MV_LEN      1
#define L2BUFF_MV_OFFSET   26
#define L2BUFF_CE_LEN      2
#define L2BUFF_CE_OFFSET   24
#define L2BUFF_DE_LEN      1
#define L2BUFF_DE_OFFSET   23
#define L2BUFF_PN_LEN      1
#define L2BUFF_PN_OFFSET   22
#define L2BUFF_UET_LEN     2
#define L2BUFF_UET_OFFSET  20
#define L2BUFF_IERR_LEN    8
#define L2BUFF_IERR_OFFSET 8
#define L2BUFF_SERR_LEN    8
#define L2BUFF_SERR_OFFSET 0







#define L2BUFF_SECC_CNT_OVFLOW_LEN    1
#define L2BUFF_SECC_CNT_OVFLOW_OFFSET 27
#define L2BUFF_SECC_CNT_LEN           8
#define L2BUFF_SECC_CNT_OFFSET        19
#define L2BUFF_ADDR_ECC_ERROR_LEN     18
#define L2BUFF_ADDR_ECC_ERROR_OFFSET  1
#define L2BUFF_TYPE_ECC_ERROR_LEN     1
#define L2BUFF_TYPE_ECC_ERROR_OFFSET  0



#define L2BUFF_SRCID_LEN       9
#define L2BUFF_SRCID_OFFSET    23
#define L2BUFF_RETNID_LEN      9
#define L2BUFF_RETNID_OFFSET   14
#define L2BUFF_ERR_TYPE_LEN    6
#define L2BUFF_ERR_TYPE_OFFSET 1
#define L2BUFF_ERR_VLD_LEN     1
#define L2BUFF_ERR_VLD_OFFSET  0

#define L2BUFF_OPCODE_LEN       6
#define L2BUFF_OPCODE_OFFSET    10
#define L2BUFF_REQRSV_LEN       4
#define L2BUFF_REQRSV_OFFSET    6
#define L2BUFF_CACHEABLE_LEN    1
#define L2BUFF_CACHEABLE_OFFSET 5
#define L2BUFF_NS_LEN           1
#define L2BUFF_NS_OFFSET        4
#define L2BUFF_SIZE_LEN         4
#define L2BUFF_SIZE_OFFSET      0

#define L2BUFF_MAGIC_WORD_LEN    32
#define L2BUFF_MAGIC_WORD_OFFSET 0

#define L2BUFF_MAIN_VERSION_LEN         4
#define L2BUFF_MAIN_VERSION_OFFSET      16
#define L2BUFF_SUB_VERSION_LEN          4
#define L2BUFF_SUB_VERSION_OFFSET       12
#define L2BUFF_HISILICON_VERSION_LEN    12
#define L2BUFF_HISILICON_VERSION_OFFSET 0

#endif // __L2BUFF_REG_OFFSET_FIELD_H__
